package ar.edu.unicen.exa.oop.bbquery;

import java.awt.EventQueue;

import ar.edu.unicen.exa.oop.bbquery.facade.AppFacade;

public class MainClass {
	public static void setFrame(MainForm frame) {
		_frame = frame;
	}

	public static MainForm getFrame() {
		return _frame;
	}
	private static MainForm _frame;
	/**
	 * Main class for starting up the thing ;)
	 * 
	 * @param args, ignored here in these app
	 */
	public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {          

			@Override
            public void run() {
				MainClass.setFrame(new MainForm());
                AppFacade mvcfacade=AppFacade.getInst();                
                mvcfacade.startup();
                MainClass.getFrame().setDefaultCloseOperation(MainForm.EXIT_ON_CLOSE);
                MainClass.getFrame().setTitle("MainFrame");
                MainClass.getFrame().getContentPane().setPreferredSize(MainClass.getFrame().getSize());
                MainClass.getFrame().pack();
                MainClass.getFrame().setLocationRelativeTo(null);
                MainClass.getFrame().setVisible(true);
            }

			
        });

	}

}
